class CaMenu < ActiveRecord::Base
 
 has_many :ca_menu_item, :order=>'lft'

  def itens_raiz
    CaMenuItem.find(:all,:conditions=>['ca_menu_id = ? AND parent_id IS NULL',self.id])
  end
end
